<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 先引入核心库 -->
    <script src="./js/react.development.js"></script>
    <!-- 再引入拓展库 用于react支持dom操作 -->
    <script src="./js/react-dom.development.js"></script>
    <!-- 引入jsx转js库 -->
    <script src="./js/babel.min.js"></script>
</head>

<body>
    <div id="test"></div>
    <!-- //此处一定要写babel -->
    <script type="text/babel">
        const a = 'Angular'
        const b = 'React'
        const c = 'Vue'
        const d =['Angular', 'React', 'Vue']
        const VDOM = (
        <div>
            <h1>前端js框架列表</h1>
            <ul>
                {
                    d.map((item,index) => {
                        return <li key={index}>{item}</li>
                    })
                }
            </ul>
        </div>
        ) 
        ReactDOM.render(VDOM, document.querySelector('#test'))
    </script>
</body>

</html>